/**
 * Message.java
 */
package com.pluginsacceptor.api;


/**
 * The class contains communication protocol between plugins
 */
public final class Message {

    /** The message prefix */
    public static final String ROW = "row=";

    /** The message prefix */
    public static final String COL = "col=";

    /** The message prefix */
    public static final String VALUE = "val=";

    /** The message prefix */
    public static final String COLOR = "color=";

    /** The message prefix */
    public static final String FONT_TYPE = "font_type=";

    /** */
    public static final String START_SELECTION = "start_selection";

    /** */
    public static final String END_SELECTION = "end_selection";

    /** */
    public static final String EMPTY_VALUE = "null";

    /**
     * Cell message template
     * {0} - cell column number in spread sheet
     * {1} - cell row number in spread sheet
     * {2} - cell value in spread sheet
     */
    public static final String CELL_DATA_FORMAT =
        "[" + ROW + "{0}, " + COL + "{1}, " + VALUE + "{2}]";

    /**
     * Cell display message template
     * {0} - cell column number in spread sheet
     * {1} - cell row number in spread sheet
     * {2} - cell color in spread sheet
     * {3} - cell fontType in spread sheet // TODO need extend
     */
    public static final String CELL_DISPLAY_FORMAT =
        "[" + ROW + "{0}, " + COL + "{1}, " + COLOR + "{2}, " + FONT_TYPE + "{3}]";

}
